package com.cooksys.film_rental.model.forms;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * Backing object for the profile form
 * 
 * @author Peter Zastoupil
 * 
 */
public class ProfileForm {
	
	Short customerId;

	@NotEmpty
	@Pattern(regexp = "[.[^(NONE)]]+")
	String storeId;

	@NotEmpty
	@Size(max = 45)
	String firstName;

	@NotEmpty
	@Size(max = 45)
	String lastName;

	@Size(max = 50)
	String email;

	@NotEmpty
	@Size(max = 50)
	String addressLine1;

	@Size(max = 50)
	String addressLine2;

	@NotEmpty
	@Size(max = 20)
	String district;

	@NotEmpty
	@Size(max = 50)
	String cityName;

	@NotEmpty
	@Pattern(regexp = "[.[^(NONE)]]+")
	String countryId;

	@Size(max = 10)
	String postalCode;

	@NotEmpty
	@Size(max = 20)
	String phoneNumber;

	public Short getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Short customerId) {
		this.customerId = customerId;
	}

	public String getStoreId() {
		return storeId;
	}

	public void setStoreId(String storeId) {
		this.storeId = storeId;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getAddressLine1() {
		return addressLine1;
	}

	public void setAddressLine1(String addressLine1) {
		this.addressLine1 = addressLine1;
	}

	public String getAddressLine2() {
		return addressLine2;
	}

	public void setAddressLine2(String addressLine2) {
		this.addressLine2 = addressLine2;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public String getCountryId() {
		return countryId;
	}

	public void setCountryId(String countryId) {
		this.countryId = countryId;
	}

	public String getPostalCode() {
		return postalCode;
	}

	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

}